<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="zh" xml:lang="zh" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Guideline: 业务用例模型中的包含关系</title>
<meta name="uma.type" content="Guideline">
<meta name="uma.name" content="include-relationship_in_the_business_use-case_model">
<meta name="uma.presentationName" content="业务用例模型中的包含关系">
<meta name="element_type" content="other">
<meta name="filetype" content="description">
<meta name="role" content="">
<link rel="StyleSheet" href="./../../../css/default.css" type="text/css">
<script src="./../../../scripts/ContentPageResource.js" type="text/javascript" language="JavaScript"></script><script src="./../../../scripts/ContentPageSection.js" type="text/javascript" language="JavaScript"></script><script src="./../../../scripts/ContentPageSubSection.js" type="text/javascript" language="JavaScript"></script><script src="./../../../scripts/ContentPageToolbar.js" type="text/javascript" language="JavaScript"></script><script src="./../../../scripts/contentPage.js" type="text/javascript" language="JavaScript"></script><script type="text/javascript" language="JavaScript">
					var backPath = './../../../';
					var imgPath = './../../../images/';
					var nodeInfo=null;
					contentPage.preload(imgPath, backPath, nodeInfo,  '', false, false, false);
				</script>
</head>
<body>
<div id="breadcrumbs"></div>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top"><a name="Top"></a>
<div id="page-guid" value="8.096716256124967E-305"></div>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="pageTitle" nowrap="true">Guideline: 业务用例模型中的包含关系</td><td width="100%">
<div align="right" id="contentPageToolbar"></div>
</td><td width="100%" class="expandCollapseLink" align="right"><a name="mainIndex" href="./../../../index.htm"></a><script language="JavaScript" type="text/javascript" src="./../../../scripts/treebrowser.js"></script></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="pageTitleSeparator"><img src="./../../../images/shim.gif" alt="" title="" height="1"></td>
</tr>
</table>
<div class="overview">
<table width="97%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50"><img src="./../../../images/guidance.gif" alt="" title=""></td><td>
<table class="overviewTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">包含关系用于将工作流程（基本用例仅取决于该工作流程的结果而不是取得结果的方法）划分为若干部分。</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">Relationships</div>
<div class="sectionContent">
<table class="sectionTable" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<th class="sectionTableHeading" scope="row">Related Elements</th><td class="sectionTableCell">
<ul>
<li>
<a href="./../../../rup_bm/tasks/structure_business_use_case_model_14C5A103.html" guid="{CBD0232E-3AE5-49A7-AF3B-A251179D18D6}">构造业务用例模型的框架</a>
</li>
<li>
<a href="./../../../rup_bm/workproducts/rup_business_use_case_model_EC79264C.html" guid="{89BEF367-5875-47E0-97D6-23E5BCCE52B8}">业务用例模型</a>
</li>
</ul>
</td>
</tr>
</table>
</div>
<div class="sectionHeading">Main Description</div>
<div class="sectionContent">
<table class="sectionTable" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td class="sectionTableSingleCell"><a id="Top" name="Top"></a><a key="业务用例模型中的包含关系（include-relationship in business use-case model）" text="指南" name="XE_include-relationship_in_business_use-case_model__guidelines_for" id="XE_include-relationship_in_business_use-case_model__guidelines_for" class="index"></a> 
<h3>
    <a id="Explanation" name="Explanation">说明</a>
</h3>
<p>
    包含关系用于将工作流程（基本用例仅取决于该工作流程的结果而不是取得结果的方法）划分为若干部分。如果这种分离可以简化对基本用例的理解（隐藏详细的行为），或者可以在其他基本用例中复用被分离的行为，您就可以进行这种分离。
</p>
<p>
    要进行对照，另请参阅系统用例模型中的<a class="elementLinkWithType" href="./../../../rup/guidances/guidelines/include-relationship_5AE2718.html" guid="7.259881398615376E-305">Guideline: 包含关系</a>。
</p>
<h3>
    <a id="Use" name="Use">使用</a>
</h3>
<p>
    一旦大体确定业务用例的工作流程，您就可查找若干工作流程共同的行为或是没有必要详细查看以理解业务用例的主要目标的行为。
</p>
<p align="center">
    <img height="159" alt="附带文本中描述的图。" src="./../../../rup_bm/guidances/guidelines/resources/bincl1.gif" width="201" />
</p>
<p class="picturetext">
    “办理个人登机手续”和“办理团体登机手续”业务用例都包含“行李处理”业务用例。
</p>
<p>
    遵循基本用例描述的业务用例实例也将遵循包含用例的描述。在包含的业务用例中描述的整个工作流程被合并。这种包含业务用例始终是抽象的，且无需与业务参与者有关系。
</p>
<h3>
    <a id="Recommended Restrictions in Use" name="Recommended Restrictions in Use">推荐的使用限制</a>
</h3>
<p>
    您应重新考虑含有不止一个包含关系的级别的模型。即使多层次的模型在其他各个方面都正确，也难以理解这种模型。
</p>
<p>
    在和那些与用例建模方法接触甚少或先前并未接触过的人讨论模型时，您甚至可能考虑隐藏包含用例和包含关系。
</p><br />
<br /></td>
</tr>
</table>
</div>
<table class="copyright" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="copyright">Copyright &copy; 2008 版权所有 东软集团股份有限公司&nbsp; 联系邮箱:<a href="mailto:tcoe@neusoft.com">tcoe@neusoft.com</a></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<script type="text/javascript" language="JavaScript">
				contentPage.onload();
			</script>
</html>
